
package com.yuhanginfo.modules.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yuhanginfo.common.service.CrudService;
import com.yuhanginfo.modules.sys.entity.Vender;
import com.yuhanginfo.modules.sys.dao.VenderDao;

/**
 * 制造商品牌Service
 * @author lvls
 * @version 2017-09-26
 */
@Service
@Transactional(readOnly = true)
public class VenderService extends CrudService<VenderDao, Vender> {
    @Autowired
    private VenderDao venderDao;
    

	
	@Transactional(readOnly = false)
	public void save(Vender vender) {
		super.save(vender);
	}
	
	@Transactional(readOnly = false)
	public void delete(Vender vender) {
		super.delete(vender);
	}

	public List<Vender> selectVenderList() {
		
		return venderDao.selectVenderList();
	}

	public Vender getByName(String name) {
		return venderDao.getByName(name);
	}
	
}